package cn.calm.swing.osgi.api.entity;

import java.io.Serializable;

import cn.calm.swing.osgi.api.annotation.Column;
import cn.calm.swing.osgi.api.annotation.MapsId;
import cn.calm.swing.osgi.api.annotation.Table;
@Table(name="PROJECT_PROPERTY")
public class ProjectProperty implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Column(name="PROJECT_ID")
	private Long projectId;
	@MapsId(id="projectId")
	private Project project;
	private String key;
	private String property;
	@Column(name="PROPERTY_VALUE")
	private String propertyValue;
	public ProjectProperty() {
	}
	public ProjectProperty(String key,String property, String propertyValue) {
		this.key = key;
		this.property = property;
		this.propertyValue = propertyValue;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public String getPropertyValue() {
		return propertyValue;
	}

	public void setPropertyValue(String propertyValue) {
		this.propertyValue = propertyValue;
	}

	public String getProperty() {
		return property;
	}
	
	public void setProperty(String property) {
		this.property = property;
	}
	
	@Override
	public String toString() {
		return "ProjectProperty [projectId=" + projectId + ", key=" + key
				+ ", property=" + property + ", propertyValue=" + propertyValue
				+ "]";
	}
}
